package phapp.model.barapp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;


/**
 * <p> 标题: 推送表通知用户接收, tc_lyj_fxmsg_send_info 数据类 POJO
 * <p>Description: DAO层映射到数据类,页面封装数据映射到数据类
 * <p>Copyright: Copyright (c) 2014-10
 * <p>Company: 
 * @author you name
 * @version 1.0
*/

public class LyjFxmsgSend extends BaseEntity {
   
   //date formats
   public static final String FORMAT_SEND_TIME = DATE_TIME_FORMAT;
   
   //columns START
   /**序列*/
   private java.lang.Integer msgId;
   /**消息长度:可不填*/
   private java.lang.Integer msgLength;
   /**消息类型:3图片、广本 4赠花*/
   private java.lang.Integer msgType;
   /**序列号：可不填*/
   private java.lang.Integer msgSeqno;
   /**发送者ID*/
   private java.lang.Integer sendId;
   /**接收者ID*/
   private java.lang.Integer recvId;
   /**消息格式:1文本 2图片*/
   private java.lang.Integer msgFormat;
   /**消息内容(图片url)*/
   private java.lang.String msgContent;
   /**玫瑰花数量*/
   private java.lang.Integer flowerCount;
   /**排序列*/
   private java.lang.Integer origMsgSeqno;
   /**发送次数*/
   private java.lang.Integer sendCount;
   /**发送时间*/
   private java.sql.Timestamp sendTime;
   /**好友验证状态：0拒绝加为好友 1 加为好友*/
   private java.lang.Integer verifyStatus;
   /**状态*/
   private java.lang.Integer sendStatus;
   
   private java.util.ArrayList idList;
   //columns END

	public LyjFxmsgSend(){
	}

	public LyjFxmsgSend(
		java.lang.Integer msgId
	){
		this.msgId = msgId;
	}

     public void setId(java.lang.Integer value) {
		      this.msgId = value;
	 }
		   
	 public java.lang.Integer getId() {
		      return this.msgId;
	 }
   public void setMsgId(java.lang.Integer value) {
      this.msgId = value;
   }
   
   public java.lang.Integer getMsgId() {
      return this.msgId;
   }
   public void setMsgLength(java.lang.Integer value) {
      this.msgLength = value;
   }
   
   public java.lang.Integer getVerifyStatus() {
	return verifyStatus;
}

public void setVerifyStatus(java.lang.Integer verifyStatus) {
	this.verifyStatus = verifyStatus;
}

public java.lang.Integer getMsgLength() {
      return this.msgLength;
   }
   public void setMsgType(java.lang.Integer value) {
      this.msgType = value;
   }
   
   public java.lang.Integer getMsgType() {
      return this.msgType;
   }
   public void setMsgSeqno(java.lang.Integer value) {
      this.msgSeqno = value;
   }
   
   public java.lang.Integer getMsgSeqno() {
      return this.msgSeqno;
   }
   public void setSendId(java.lang.Integer value) {
      this.sendId = value;
   }
   
   public java.lang.Integer getSendId() {
      return this.sendId;
   }
   public void setRecvId(java.lang.Integer value) {
      this.recvId = value;
   }
   
   public java.lang.Integer getRecvId() {
      return this.recvId;
   }
   public void setMsgFormat(java.lang.Integer value) {
      this.msgFormat = value;
   }
   
   public java.lang.Integer getMsgFormat() {
      return this.msgFormat;
   }
   public void setMsgContent(java.lang.String value) {
      this.msgContent = value;
   }
   
   public java.lang.String getMsgContent() {
      return this.msgContent;
   }
   public void setFlowerCount(java.lang.Integer value) {
      this.flowerCount = value;
   }
   
   public java.lang.Integer getFlowerCount() {
      return this.flowerCount;
   }
   public void setOrigMsgSeqno(java.lang.Integer value) {
      this.origMsgSeqno = value;
   }
   
   public java.lang.Integer getOrigMsgSeqno() {
      return this.origMsgSeqno;
   }
   public void setSendCount(java.lang.Integer value) {
      this.sendCount = value;
   }
   
   public java.lang.Integer getSendCount() {
      return this.sendCount;
   }
   public String getSendTimeString() {
      return date2String(getSendTime(), FORMAT_SEND_TIME);
   }
   
   public void setSendTimeString(String value) {
      setSendTime(string2Date(value, FORMAT_SEND_TIME,java.sql.Timestamp.class));
   }
   
   public void setSendTime(java.sql.Timestamp value) {
      this.sendTime = value;
   }
   
   public java.sql.Timestamp getSendTime() {
      return this.sendTime;
   }
   public void setSendStatus(java.lang.Integer value) {
      this.sendStatus = value;
   }
   
   public java.lang.Integer getSendStatus() {
      return this.sendStatus;
   }

   public java.util.ArrayList getIdList() {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList) {
      this.idList = idList;
   }

    /**手动增加属性后,toString,hashCode,equals都要修改*/
   public String toString() {
      return new ToStringBuilder(this)
         .append("MsgId",getMsgId())
         .append("MsgLength",getMsgLength())
         .append("MsgType",getMsgType())
         .append("MsgSeqno",getMsgSeqno())
         .append("SendId",getSendId())
         .append("RecvId",getRecvId())
         .append("MsgFormat",getMsgFormat())
         .append("MsgContent",getMsgContent())
         .append("FlowerCount",getFlowerCount())
         .append("OrigMsgSeqno",getOrigMsgSeqno())
         .append("SendCount",getSendCount())
         .append("SendTime",getSendTime())
         .append("SendStatus",getSendStatus())
         .toString();
   }
   
   public int hashCode() {
      return new HashCodeBuilder()
         .append(getMsgId())
         .append(getMsgLength())
         .append(getMsgType())
         .append(getMsgSeqno())
         .append(getSendId())
         .append(getRecvId())
         .append(getMsgFormat())
         .append(getMsgContent())
         .append(getFlowerCount())
         .append(getOrigMsgSeqno())
         .append(getSendCount())
         .append(getSendTime())
         .append(getSendStatus())
         .toHashCode();
   }
   
   public boolean equals(Object obj) {
      if(obj instanceof LyjFxmsgSend == false) return false;
      if(this == obj) return true;
      LyjFxmsgSend other = (LyjFxmsgSend)obj;
      return new EqualsBuilder()
         .append(getMsgId(),other.getMsgId())
         .append(getMsgLength(),other.getMsgLength())
         .append(getMsgType(),other.getMsgType())
         .append(getMsgSeqno(),other.getMsgSeqno())
         .append(getSendId(),other.getSendId())
         .append(getRecvId(),other.getRecvId())
         .append(getMsgFormat(),other.getMsgFormat())
         .append(getMsgContent(),other.getMsgContent())
         .append(getFlowerCount(),other.getFlowerCount())
         .append(getOrigMsgSeqno(),other.getOrigMsgSeqno())
         .append(getSendCount(),other.getSendCount())
         .append(getSendTime(),other.getSendTime())
         .append(getSendStatus(),other.getSendStatus())
         .isEquals();
   }
}

